import { nanoid } from 'nanoid'
export default function getUserTempId() {
    // 先获取本地浏览器中的临时id
    let userTempId = localStorage.getItem('userTemp2Id')

    if (!userTempId) {
        userTempId = nanoid();
        localStorage.setItem('userTemp2Id', userTempId)
    }
    return userTempId
}